JavaScript For Kids For Dummies by Chris Minnick & Eva Holland

JavaScript For Kids For Dummies by Chris Minnick & Eva Holland

Author:Chris Minnick & Eva Holland
Language: eng
Format: epub
ISBN: 9781119119890
Published: 2015-08-17T02:24:21+00:00


What Are Arrays?

Arrays are a special kind of variable that can hold multiple values using the same name. You can picture an array as being similar to a dresser with multiple drawers. Each drawer can hold something different, but the whole thing is still your dresser.

If you want to tell someone which drawer to look in for socks, you can say, “The socks are in the top drawer.” If they’re in the next drawer down, you’d say, “They’re in the second drawer from the top.” If you were to make a list showing what’s in each drawer of your dresser, you would do something like this:

Top drawer: Socks

Second drawer: Shirts

Third drawer: Pants



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.